package com.fast.alden.data.repo;

import com.fast.alden.data.model.SysUserPosition;

import java.util.List;

public interface SysUserPositionRepository extends BaseEntityRepository<SysUserPosition> {
    List<SysUserPosition> findAllByUserIdIsAndPositionIdIn(Long userId, List<Long> positionIds);

    void deleteByUserIdIn(List<Long> userIds);

    void deleteByPositionIdIn(List<Long> positionIds);

    List<SysUserPosition> findAllByUserIdIs(Long userId);

    List<SysUserPosition> findAllByPositionId(Long positionId);
}
